package com.cloudcc.boot.service;

import com.cloudcc.boot.core.CCObject;
import com.cloudcc.boot.core.CCService;
import com.cloudcc.boot.core.UserInfo;

import java.util.List;

/**
 * @author T.han
 * @date 2023/8/18 10:44
 * @project CloudccNewPro
 * @Description //TODO
 */
public class demoClass {
    public static CCService cs;
    public static UserInfo userInfo;

    public demoClass(UserInfo userInfo) {
        demoClass.userInfo = userInfo;
        cs = new CCService(userInfo);
    }

    public static void main(String[] args) {
        demoClass ta =new demoClass(userInfo);

        ta.getData();


    }

    public void getData(){
        String id = "";
        List<CCObject> data = cs.cquery("Account","id='0012022999077CCsIaRH'");
        if (data.size() > 0) {
            System.out.println("data.size() = " + data.size());
            System.out.println("data = " + data);

        } else {
            System.out.println("未查询到数据");
        }

    }


}
